class NewSymbol{
    constructor() {
        this.data = {}
    }

    set(name, value) {
        this.data[name]  = value
    }

    get(name) {
        console.log(this.data[name])
        return this.data[name]
    }

}

let user = {
    key:Symbol('user key'),
    value: '这是一个用户， 用户的名称是user'
}

let books = {
    key: Symbol('books key'),
    value: '这是一本书， 书的名称是book'
}

let u = new NewSymbol();
u.set(user.key, user.value)
u.get(user.key)

let b = new NewSymbol();
b.set(books.key, books.value)
b.get(books.key)

window.localStorage.getItem()
window.localStorage.setItem()
window.localStorage.removeItem()
window.localStorage.clear()
window.localStorage.key()
